Code example for ActionBarActivity

0
 
import com.stevenschoen.putionew.PutioUtils; 
import com.stevenschoen.putionew.R; 
import com.stevenschoen.putionew.UIUtils; 
 
public class AboutActivity extends ActionBarActivity { 
	 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.aboutphone); 
		if (UIUtils.isTablet(this)) {
			getWindow().setLayout((int) PutioUtils.pxFromDp(this, 380), (int) PutioUtils.pxFromDp(this, 500));
		} 
		if (!UIUtils.isTablet(this)) {
			getSupportActionBar().setDisplayHomeAsUpEnabled(true); 
		} 
	} 
	 
	@Override 
Experience pair programming with AI  Get Codota for Java