Re: [android-developers] Fragments /Compatibility API Backstack Clearing Problem

2014-07-02 Thread m3n0R
Same here... Is there any good way to do that?

El jueves, 3 de noviembre de 2011 08:10:21 UTC+1, Alexey Zakharov escribió:

 Even with POP_BACK_STACK_INCLUSIVE onResume of popped Fragment is called. 
 You need to add alternative method that will allow remove element from back 
 stack without resuming it.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to use forefround in other no FrameLayout viewgroups

2013-07-10 Thread m3n0R
Hi everybody,

I'm trying to mimic the holo blue effect on the Google Play and Google 
Music list rows.

Till now, I've used selectable background, but this is a different effect 
over the row background. Si suppose they are using a nine patch image with 
1dp grey border.

I posted on StackOverflow, but nobody answered...

http://stackoverflow.com/questions/16787738/how-to-set-foreground-attribute-to-other-non-framelayout-view

Here some images:

http://img189.imageshack.us/img189/1016/0asy.png

http://img191.imageshack.us/img191/7051/zlz8.png

http://img89.imageshack.us/img89/9055/e8nx.png

Thanks in advance!!!


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Having troubles incompatibility related with Google Play and some devices even supporting all size screens

2012-05-24 Thread m3n0R
Hi everybody!

I would like to know, why there is incompatibility problem with my 
application in some android devices (like HTC Explorer, Galaxy Mini...). 
Here is my manifest:


manifest 

xmlns:android=http://schemas.android.com/apk/res/android;

package=com.newin.android

android:versionCode=2

android:installLocation=preferExternal

android:versionName=1.0.1 


uses-sdk

android:minSdkVersion=8

android:targetSdkVersion=15/



uses-permission   android:name=
android.permission.ACCESS_COARSE_LOCATION /

uses-permissionandroid:name=android.permission.ACCESS_FINE_LOCATION 
/

uses-permission  android:name=android.permission.INTERNET /  

uses-permission  android:name=android.permission.ACCESS_GPS /

uses-permission  android:name=android.permission.CAMERA /

uses-permission  android:name=android.permission.WRITE_EXTERNAL_STORAGE 
/

uses-permission   android:name=
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS /

uses-permission  android:name=
android.permission.RECEIVE_BOOT_COMPLETED /

uses-permission  android:name=android.permission.GET_TASKS /

supports-screens 

android:largeScreens=true

  android:normalScreens=true 

  android:smallScreens=true 

  android:xlargeScreens=true

  android:anyDensity=true /

application

android:icon=@drawable/ic_launcher

android:label=@string/app_name



   /application


/manifest

Any idea?


Thanks in advance!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Has Google developed FragmentLayoutSupport.java in a wrong way?

2011-11-30 Thread m3n0R
Ok I'll try it to do.

Another thing is. Imagine I've made an specific layout, that handles
different kind of screen wides, but it doesn't care about if you in
portrait. Shall I use a condition and use a different layout for every
position?

For example:

if (getResources().getConfiguration().orientation ==
Configuration.ORIENTATION_LANDSCAPE) {
//specific layout for LANDSCAPE
mAdapter = new
NoLocGigAdapter(getActivity(),R.layout.no_loc_gig_list_landscape,gList);
else {
   //Portrait Layout
   mAdapter = new
NoLocGigAdapter(getActivity(),R.layout.no_loc_gig_list_portrait,gList);
}
setListAdapter(mAdapter)


And in the getView() method:

if (getResources().getConfiguration().orientation ==
Configuration.ORIENTATION_LANDSCAPE) {
//specific layout for LANDSCAPE
 holder.tit.setText(g.getTitle());
else {
   //Portrait Layout
   holder.tit.setText(g.getTitle());
   holder.des.setText(g.getDescription());
   holder.slots.setText(String.valueOf(g.getSlotsFree()));
   holder.time.setText(g.getTimeLeft());
}


Thank you again


On 28 nov, 21:17, Dianne Hackborn hack...@android.com wrote:
 That is working as intended for that sample.  If you want to return to the
 details in portrait, you will need to use a different approach for
 implementing the UI, entirely using fragments.









 On Mon, Nov 28, 2011 at 7:37 AM, m3n0R cesaryomi...@gmail.com wrote:
  Hi everybody:

  I've just have developed something like the FragmentLayoutSupport
  example from Google, to show a ListView and Details from every element
  in the list.

 http://developer.android.com/resources/samples/Support4Demos/src/com/...

  The point is, when you you get the list in PORTRAIT mode, and you
  select details (a TextView), you enter to the Fragment wanted
  (DetailsFragment). Once you are therem if you turn the phone to LAND
  mode, the element is well selected, but once we turn again the phone
  to PORTRAIT mode, tada! we are on the list screen instead the Details
  screen.

  Anybody knows how to solve that? Is the example wrong?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Has Google developed FragmentLayoutSupport.java in a wrong way?

2011-11-28 Thread m3n0R
Hi everybody:

I've just have developed something like the FragmentLayoutSupport
example from Google, to show a ListView and Details from every element
in the list.

http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentLayoutSupport.html

The point is, when you you get the list in PORTRAIT mode, and you
select details (a TextView), you enter to the Fragment wanted
(DetailsFragment). Once you are therem if you turn the phone to LAND
mode, the element is well selected, but once we turn again the phone
to PORTRAIT mode, tada! we are on the list screen instead the Details
screen.

Anybody knows how to solve that? Is the example wrong?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] FragmentMap + ActionBar Tab

2011-11-16 Thread m3n0R
I have a problem I've been trying insert a MapView into a ActionBar
Tab, but I wasn't able to solve the problem even googling...

Here is the Main Activity:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.action_bar_tabs);
FragmentManager fm = getSupportFragmentManager();
fm.beginTransaction().add(android.R.id.content,
GigLoader.GigLoaderListFragment.newInstance()).commit();

 
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

ActionBar.Tab tab1 =
getSupportActionBar().newTab().setText(Geo).setTabListener(this);
ActionBar.Tab tab2 =
getSupportActionBar().newTab().setText(Lista).setTabListener(this);
getSupportActionBar().addTab(tab1);
getSupportActionBar().addTab(tab2);
}

@Override
public void onTabSelected(Tab tab, FragmentTransaction ft) {
if (tab.getPosition() == 0) {
fm.beginTransaction().add(android.R.id.content,
GigLoader.GigLoaderListFragment.newInstance()).commit();
}
else {
fm.beginTransaction().add(android.R.id.content,
GeoGigLoader.GeoGigMapFragment.newInstance()).commit();
}

}

And here the code of the GeoGigLoader:

public class GeoGigLoader extends FragmentMapActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}

public static final class GeoGigMapFragment extends Fragment {

static GeoGigMapFragment newInstance() {
GeoGigMapFragment map = new GeoGigMapFragment();
return map;
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup
container, Bundle savedInstanceState) {
View view =
getActivity().getLayoutInflater().inflate(R.layout.map_gigs,
container, false);
MapView mapView = (MapView)view.findViewById(R.id.map_view);
mapView.setBuiltInZoomControls(true);
return view;
}

}

@Override
protected boolean isRouteDisplayed() {
return false;
}
}

FragmentMapActivity is a library from actionbarsherlock.com, and this
one extends from a MapActivity, so it should work...

The error I get, is the next one:

FATAL EXCEPTION: main E/AndroidRuntime(954):
android.view.InflateException: Binary XML file line #2: Error
inflating class com.google.android.maps.MapView E/AndroidRuntime(954):
at android.view.LayoutInflater.createView(LayoutInflater.java:513) E/
AndroidRuntime(954): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)

Anybody knows what's happening? Thx!!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en