You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// go to (...)\styles.xml
<stylename="AppTheme"parent="@android:style/Theme.NoTitleBar" />
// detail is -> style/Theme.NoTitleBar
customizing objects / drawables
// create xml file to -> (...) res/drawable/
// file name needs to be lower case
// paste this code =
<?xml version="1.0" encoding="UTF-8"?>
<shapexmlns:android="http://schemas.android.com/apk/res/android">
<solidandroid:color="#ffffffff"/>
</shape>
//usage = android:background="@drawable/ name"
// you can use this pages to learn inner elements =
importandroid.widget.*;
importandroid.widget.TextView;
importandroid.view.View;
importandroid.view.ViewGroup.LayoutParams;
importandroid.view.ViewGroup;
finalViewview1=(View) findViewById(R.id.viewId);
// in this solution, view1 is a guide for view2view1.post(newRunnable(){
@Overridepublicvoidrun()
{
view1.getWidth();
view1.getHeight();
// using sizesViewview2=(View) findViewById(R.id.view2);
ViewGroup.LayoutParamsviewG1=view1.getLayoutParams();
viewG1.width=view1.getWidth()-50;
view2.setLayoutParams(viewG1);
}
});
go to this folder (default) ->%localappdata% / android / sdk / platform-tools /
and copypath (for example)-> C:\Users\UserName\AppData\Local\Android\Sdk\platform-tools
open cmd and change directory to that path ->cd"C:\Users\UserName\AppData\Local\Android\Sdk\platform-tools"
and use adb commands , example -> adb connect 127.0.0.1:5555(this is the virtual device's address)
Android Studio - Licence fix
go to settings / android sdk
change tab SDK Platforms -> SDK Tools
download Google Play Licensing Library
you can also download Android SDK build Tools