@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ this.setContentView(R.layout.weather_about);
final ActionBar actionBar = this.getSupportActionBar();
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
actionBar.setIcon(R.drawable.ic_launcher);
-
- setContentView(R.layout.weather_about);
}
@Override
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ this.setContentView(R.layout.weather_licenses);
final ActionBar actionBar = this.getSupportActionBar();
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE);
actionBar.setDisplayShowHomeEnabled(true);
actionBar.setIcon(R.drawable.ic_launcher);
- setContentView(R.layout.weather_licenses);
-
mWebView = (WebView) this.findViewById(R.id.weather_licenses);
}
*/
package name.gumartinm.weather.information.activity;
-import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ this.setContentView(R.layout.weather_map);
final ActionBar actionBar = this.getSupportActionBar();
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
actionBar.setIcon(R.drawable.ic_launcher);
-
- this.setContentView(R.layout.weather_map);
// Acquire a reference to the system Location Manager
this.mLocationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
actionBar.setIcon(R.drawable.ic_launcher);
-
}
@Override
<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
+ <!-- TODO: API 11 layout_marginStart and layout_marginEnd do not exist -->
<item name="android:layout_marginStart">20dp</item>
<item name="android:layout_marginEnd">20dp</item>
<item name="android:background">?android:attr/listDivider</item>
<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
+ <!-- TODO: API 11 layout_marginStart and layout_marginEnd do not exist -->
<item name="android:layout_marginStart">20dp</item>
<item name="android:layout_marginEnd">20dp</item>
<item name="android:background">?android:attr/listDivider</item>
<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
+ <!-- TODO: API 11 layout_marginStart and layout_marginEnd do not exist -->
<item name="android:layout_marginStart">20dp</item>
<item name="android:layout_marginEnd">20dp</item>
<item name="android:background">?android:attr/listDivider</item>