Changes

An Android Studio Master/Detail Flow Tutorial - Android 6

15 bytes added, 20:01, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_ANDROID_STUDIO6androidstudio_a6</googlehtmlet>
Finally, click finish to create the new Master/Detail Flow based application project.
<googlehtmlet>BUY_ANDROID_STUDIO6androidstudio_a6</googlehtmlet>
== The Anatomy of the Master/Detail Flow Template ==
}
</pre>
<googlehtmlet>BUY_ANDROID_STUDIO6androidstudio_a6</googlehtmlet>
This code needs to be modified to initialize the data model with the required web site data:
Switch to Design mode and verify that the layout now matches that shown in Figure 36-5:
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
[[Image:android_studio_master_detail_webview_1.4.png]]
The above changes modify the onCreate() method to display the web site name on the app bar:
<googlehtmlet>BUY_ANDROID_STUDIO6androidstudio_a6</googlehtmlet>
<pre>
appBarLayout.setTitle(mItem.website_name);
<googlehtmlet>BUY_ANDROID_STUDIO6androidstudio_a6</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">