Skip to content

Instantly share code, notes, and snippets.

View wviana's full-sized avatar
💭
Vim Vi e Venci

Wesley Viana wviana

💭
Vim Vi e Venci
View GitHub Profile
//This is what I'm doing but getting RadioButton width as 0. :(
public void addPresenter(int icon){
RadioButton presenter = new RadioButton(getContext());
//Configura atributos padrão
Drawable drawable = getResources().getDrawable(icon);
presenter.setCompoundDrawables(drawable, null, null, null);
presenter.setButtonDrawable(null);
package neocom.dealerbook.views;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.Transformation;
private void updatePhoto() {
foto.setVisibility(View.VISIBLE);
Picasso.with(getActivity())
.load(getPhotoRequestPath())
.into(foto, getStreetViewImage);
}
<RelativeLayout
style="@style/sidebar_switch_style"
>
<TextView
android:id="@+id/layer_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:textSize="20sp"
<RadioGroup
android:id="@+id/presenter_options"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="4dp"
android:gravity="center"
>
<RadioButton
package neocom.dealerbook.views;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Transformation;
import android.widget.LinearLayout;
import android.widget.TextView;
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
public ClusterManager getClusterManager(Class c){
return new ClusterManager<c>(this, mMap);
}
-assumenosideeffects class android.util.Log {
public static boolean isLoggable(java.lang.String, int);
public static int v(...);
public static int i(...);
public static int w(...);
public static int d(...);
public static int e(...);
}
Note: there were 5 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 3 classes trying to access enclosing classes using reflection.
You should consider keeping the inner classes attributes
(using '-keepattributes InnerClasses').
(http://proguard.sourceforge.net/manual/troubleshooting.html#attributes)
Note: there were 208 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').