Home / App Templates / Android / Applications / Travel
Info Kotaku - City Guide App Source CodeInfo Kotaku - City Guide App Source Code
Info Kotaku: is a city guide app for Android.Home / App Templates / Android / Applications / Travel
Info Kotaku - City Guide App Source Code
Info Kotaku: is a city guide app for Android.Frequently asked questions (FAQ)
Now to add more categories / list into the app.
step 1
add this code to res > layout > then open activity_main.xml
android:id="@+id/zoo"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_margin="1dip"
android:layout_weight="1"
android:gravity="center_horizontal"
android:orientation="vertical">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="2dip"
android:src="@drawable/zoo" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="3dip"
android:layout_marginLeft="2dip"
android:layout_marginRight="2dip"
android:layout_marginTop="1dip"
android:text="zoo"
android:textColor="@android:color/white"
android:textSize="14sp" />
step 2
after that please go to project main java com.sourcecode.kotaku
open MainActivity
find private LinearLayout and add code 'zoo' for example.
step 3
on code
public void onClick(View v) {
add code line
case R.id.zoo:
AllConstants.topTitle = ZOO LIST";
AllConstants.query = "Zoo";
final Intent university = new Intent(this, ListActivity.class);
university.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(zoo);
ok good luck
add this code to res > layout > then open activity_main.xml
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_margin="1dip"
android:layout_weight="1"
android:gravity="center_horizontal"
android:orientation="vertical">
android:layout_height="wrap_content"
android:gravity="center">
android:layout_height="wrap_content"
android:layout_margin="2dip"
android:src="@drawable/zoo" />
android:layout_height="wrap_content"
android:gravity="center">
android:layout_height="wrap_content"
android:layout_marginBottom="3dip"
android:layout_marginLeft="2dip"
android:layout_marginRight="2dip"
android:layout_marginTop="1dip"
android:text="zoo"
android:textColor="@android:color/white"
android:textSize="14sp" />
step 2
after that please go to project main java com.sourcecode.kotaku
open MainActivity
find private LinearLayout and add code 'zoo' for example.
step 3
on code
public void onClick(View v) {
add code line
case R.id.zoo:
AllConstants.topTitle = ZOO LIST";
AllConstants.query = "Zoo";
final Intent university = new Intent(this, ListActivity.class);
university.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(zoo);
ok good luck
Information
Category | App Templates / Android / Applications / Travel |
First release | 20 April 2016 |
Last update | 20 April 2016 |
Files included | .dex, .java, .obj, .xml, build.settings |
Operating Systems | Android 4.0, Android 5.0, Android 6.0 |
Tags | city guide, travel guide |